package com.itheima.ydd.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 标签管理
 * @TableName ydd_tag
 */
@TableName(value ="ydd_tag")
@Data
public class Tag implements Serializable {
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 标签名称
     */
    @TableField(value = "tagname")
    @JsonProperty(value = "tagname")
    private String tagName;

    /**
     * 是否为默认数据，null表示不是，1表示是
     */
    @TableField(value = "default_data")
    @JsonProperty(value = "default_data")
    @TableLogic(value = "1",delval = "0")
    private String defaultData;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
